package com.hello.tong.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author tong-exists
 * @Create 2023/1/1 22:35
 * @Version 1.0
 */
@FeignClient("storage-service")
public interface StorageFeignService {

    @PostMapping("/deduct/{commodityCode}/{count}")
    public void deduct(@PathVariable("commodityCode") String commodityCode, @PathVariable("count") int count) ;

}
